package com.agilegroup.crm.requests;

import static com.agilegroup.crm.utils.CONSTANTS.*;

import com.agilegroup.crm.model.Account;
import com.octo.android.robospice.request.springandroid.SpringAndroidSpiceRequest;

public class ViewAccountJsonRequest extends SpringAndroidSpiceRequest<Account>{

	private String id;
	
	public ViewAccountJsonRequest(String id) {
		super(Account.class);
		this.id=id;
	}
	
	@Override
	public Account loadDataFromNetwork() throws Exception {
		return getRestTemplate().getForObject(singleaccountsUrl+id+".json", Account.class);
	}
}
